compare-render: Don't unref an invalid GFile
authorTimm Bäder <mail@baedert.org>
Sun, 7 Jul 2019 05:23:05 +0000 (07:23 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 7 Jul 2019 05:24:00 +0000 (07:24 +0200)
We already unref it when the g_file_make_directory_with_parents fails.

testsuite/gsk/compare-render.c

index a0e68a37cd772f973a92d8646de40c56ed47370d..59a0bd2a3c9d46412d9379b2d0960a74ed34df37 100644 (file)
@@ -44,8 +44,8 @@ get_output_dir (void)
         }
       g_error_free (error);
     }
-
-  g_object_unref (file);
+  else
+    g_object_unref (file);
 
   return output_dir;
 }